using System;
using System.Collections.Generic;
using System.Text;

namespace XPStudio.HR.Model
{
    public class DepartmentModel
    {
        public DepartmentModel()
		{}
		#region Model
		private string _depid;
		private string _depnamecn;
		private string _depnameen;
		private string _depdesc;
		private string _depphone;
		private string _parentdepid;
		private bool _isroot;
		private bool _isleaf;
		private int _deplevel;
		/// <summary>
		/// 
		/// </summary>
		public string DepID
		{
			set{ _depid=value;}
			get{return _depid;}
		}
		/// <summary>
		/// 
		/// </summary>
		public string DepNameCN
		{
			set{ _depnamecn=value;}
			get{return _depnamecn;}
		}
		/// <summary>
		/// 
		/// </summary>
		public string DepNameEN
		{
			set{ _depnameen=value;}
			get{return _depnameen;}
		}
		/// <summary>
		/// 
		/// </summary>
		public string DepDesc
		{
			set{ _depdesc=value;}
			get{return _depdesc;}
		}
		/// <summary>
		/// 
		/// </summary>
		public string DepPhone
		{
			set{ _depphone=value;}
			get{return _depphone;}
		}
		/// <summary>
		/// 
		/// </summary>
		public string ParentDepID
		{
			set{ _parentdepid=value;}
			get{return _parentdepid;}
		}
		/// <summary>
		/// 
		/// </summary>
		public bool IsRoot
		{
			set{ _isroot=value;}
			get{return _isroot;}
		}
		/// <summary>
		/// 
		/// </summary>
		public bool IsLeaf
		{
			set{ _isleaf=value;}
			get{return _isleaf;}
		}
		/// <summary>
		/// 
		/// </summary>
		public int DepLevel
		{
			set{ _deplevel=value;}
			get{return _deplevel;}
		}
		#endregion Model

        public DepartmentModel(string depid, string depnamecn, string depnameen, string depdesc,
            string depphone, string parentdepid, bool isroot, bool isleaf, int deplevel)
        {
            this.DepID = depid;
            this.DepNameCN = depnamecn;
            this.DepNameEN = depnameen;
            this.DepDesc = depdesc;
            this.DepPhone = depphone;
            this.ParentDepID = parentdepid;
            this.IsRoot = isroot;
            this.IsLeaf = isleaf;
            this.DepLevel = deplevel;
        }

        public DepartmentModel(string depid, string depnamecn, string depdesc, string depphone,
            bool isroot, bool isleaf, int deplevel)
        {
            this.DepID = depid;
            this.DepNameCN = depnamecn;
            this.DepNameEN = string.Empty;
            this.DepDesc = depdesc;
            this.DepPhone = depphone;
            this.ParentDepID = string.Empty;
            this.IsRoot = isroot;
            this.IsLeaf = isleaf;
            this.DepLevel = deplevel;
        }

    }
}
